import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/login_entity.g.dart';


@JsonSerializable()
class LoginEntity {

	LoginEntity();

	factory LoginEntity.fromJson(Map<String, dynamic> json) => $LoginEntityFromJson(json);
	@JSONField(name: 'access_token')
	String? accessToken;
	@JSONField(name: 'token_type')
	String? tokenType;
	@JSONField(name: 'expires_in')
	int? expiresIn;
	String? scope;
	LoginSystemUser? systemUser;
	String? jti;

	Map<String, dynamic> toJson() => $LoginEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class LoginSystemUser {

	LoginSystemUser();

	factory LoginSystemUser.fromJson(Map<String, dynamic> json) => $LoginSystemUserFromJson(json);
	String? id;
	String? username;
	String? nickname;
	String? otherUid;
	String? password;
	String? email;
	String? mobile;
	int? status;
	dynamic createTime;
	dynamic modifyTime;
	String? lastLoginTime;
	String? sex;
	String? avatar;
	int? isSystem;
	String? description;
	int? type;
	String? sign;
	dynamic createDate;
	dynamic updateDate;
	dynamic createBy;
	dynamic updateBy;
	String? departmentId;
	int? isViewAll;
	String? companyCode;
	dynamic areaCode;
	dynamic roleId;
	String? roleName;

	Map<String, dynamic> toJson() => $LoginSystemUserToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
